package cn.edu.scau.cmi.zhouxinyue.composite;

import java.util.ArrayList;

public abstract class Component {
	private String name;
	Component parent=null;	
	public abstract Component getParent();
	public abstract Component addPerson(Leaf person);
	public abstract Component addTeam(Component team);
	public abstract Component deletePerson(Leaf person);
	public abstract Component deleteTeam(Component team);
	public abstract ArrayList<Leaf> getPerson();
	public abstract ArrayList<Component> getTeam();
	public abstract String getName();
	public abstract int getTnumber();
	public abstract int getPnumber();

}
